package com.aceitunaproject.shared.map;

import java.util.List;

import com.aceitunaproject.shared.installation.Installation;
import com.aceitunaproject.shared.modificators.Modificators;
import com.aceitunaproject.shared.settlement.Settlement;
import com.aceitunaproject.shared.unit.Unit;

/**
 * Map tile Object
 * 
 * @author Sven Berger
 * @email admin@svchb.net
 * 
 */
public class MapTile {

	private int maptileid;
	private char posx;
	private char posy;
	//Borders are the edges of the graph interpreted as the six surrounding edges of a tile
	//0=north, 1=northeast, 2=southeast, 3=south, 4=southwest, 5=northwest
	private MapBorder Borders[] = new MapBorder[6];
	//Terraintypes are hardcoded as the number of different terraintypes is quite low...
	private byte TerrainType;
	//Defines the used graphic
	private byte ImgIndex;
	private byte HeightLevel;
	private List<Modificators> modif;
	private List<Installation> constructions;
	private List<Unit> units;
	private Settlement Settlement=null;
	
	private MapTile()
	{
	}
	
	public MapTile(int mapid, byte terrain, List constr, List unit, Settlement set)
	{
		this.maptileid=mapid;
		this.TerrainType=terrain;
		this.constructions=constr;
		this.units=unit;
		this.Settlement=set;
	}
	/*
	 * public void render()
	 * {
	 * 		
	 * }
	 * public void mouseover()
	 * {
	 * 	
	 * }
	 * public void update()
	 * {
	 * 
	 * }
	 */
	
}
